
package sumo.box;


public abstract class BombTest {
    private static boolean bateu;
    
    public static boolean test(Bomba[] bombs, int x, int y){
        bateu = false;
        for(int k=0; k<bombs.length; k++){
            if( (x == bombs[k].getX() ) && ( y == bombs[k].getY()) ){
                bateu = true;
            }
        }
        return bateu;
    }
    
    
   private static Bomba bomba;
    
    public static Bomba qualBomba(Bomba[] bombs, int x, int y){
        for(int k=0; k<bombs.length; k++){
            if( (x == bombs[k].getX() ) && ( y == bombs[k].getY()) ){
                bomba = bombs[k];
            }
        }
        return bomba;
    }
}
